package com.chixing.day03_oop;

public class Student {
    private Integer stuId;
    private String stuName;

    /**
     * 构造函数作用：初始化对象 ==》 初始化属性
     *  1.初始化对象属性
     *  2.执行构造函数方法体
     * @param stuId
     * @param stuName
     */
    public Student(Integer stuId, String stuName) {
        this.stuId = stuId;
        this.stuName = stuName;
    }

    public Student() {
    }

    public Integer getStuId() {
        return stuId;
    }

    public void setStuId(Integer stuId) {
        this.stuId = stuId;
    }

    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    @Override
    public String toString() {
        return "Student{" +
                "stuId=" + stuId +
                ", stuName='" + stuName + '\'' +
                '}';
    }
}
